package com.rectcircle.scalatrateset.controller

import org.scalatra.{NotFound, Ok}

/**
  * Created by sunben960729 on 2016/12/30.
  */
class ActionController extends ScalatratestStack {
	get("/file/:id") {
		params.get("id") match {
			case Some(file) => Ok(file)
			case None       => NotFound("Sorry, the file could not be found")
		}
	}
	
}
